import Vue from 'vue'
import App from './App'
import api from './api'
import util from './common/util'
import store from './store'

// 导入封装的request接口
import request from './common/request';
// 插件
const plugin = request({
    baseURL: 'http://192.168.1.142:8080/api',
});
Vue.use(plugin);

Vue.config.productionTip = false

App.mpType = 'app'

Vue.prototype.$store = store
Vue.prototype.$api = api
Vue.prototype.$util = util

const app = new Vue({
	store,
    ...App
})
app.$mount()
